#pragma once

#include "ui_CNewsCellWidget.h"
#include <QWidget>
#include <QWidget>
#include <QPainter>
#include "CNewsCellData.h"
#include "CConstant.h"

QT_BEGIN_NAMESPACE
namespace Ui { class CNewsCellWidgetClass; };
QT_END_NAMESPACE

class CNewsCellWidget : public QWidget
{
	Q_OBJECT

public:
	CNewsCellWidget(QWidget* parent = nullptr);
	~CNewsCellWidget();
	void SetUi(CNewsCellData* pNewsCellData);
private:
	Ui::CNewsCellWidgetClass* ui;
	CNewsCellData* m_pNewsCellData;
	virtual void mouseReleaseEvent(QMouseEvent* pQMouseEvent) override;
	virtual void paintEvent(QPaintEvent* pQPaintEvent) override;
signals:
	void NewsCellClick(CNewsCellData*);
};